/*
 * 本类作用：mina框架:装载信息的实体类
 * 
 * 作者：袁小杰
 * 博客：http://blog.csdn.net/undoner
 * GIT：https://git.oschina.net/undoner
 * QQ：15137281
 * 
 */
package com.smforj.ssm.mina.codec;

import org.apache.log4j.Logger; 

/**
 * 装载信息的实体类
 * */
public class MsgEntity {

	private String content;
	private byte[] data;

	static Logger log = Logger.getRootLogger();
	
	public MsgEntity() {
		log.debug("MsgEntity()");
	}

	public MsgEntity(String content) {
		log.debug(this.getClass().getName() + " MsgEntity(String):"+content);
		this.content = content;
	}
	
	public MsgEntity(byte[] bs) {
		log.debug(this.getClass().getName() + " MsgEntity(byte[])");
		data =bs;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String toString() {
		return content;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	} 
}
